package com.clouds.wms.service;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.clouds.wms.bean.Purmc;

import com.clouds.wms.dao.PurmcDao;
import com.clouds.wms.exception.SysException;
import com.clouds.wms.util.PagesBean;

@Service("purmcService")
public class PurmcServiceImpl implements PurmcService {
	@Resource(name="purmcDao")
	private PurmcDao purmcDao;

	@Override
	public PagesBean getPurmcList(String mcaa, String mcab, String mcac,String startMcad, String endMcad, int offset, int pageSize)	throws SysException {
		return purmcDao.getPurmcList(mcaa, mcab, mcac, startMcad, endMcad, offset, pageSize);
	}

	@Override
	public Purmc getPurmc(String mcaa,String mcab) throws SysException {
		return purmcDao.getPurmc(mcaa,mcab);
	}

	@Override
	public int savePurmc(Purmc purmc) throws SysException {
		return purmcDao.savePurca(purmc);
	}
	
}
